using UnityEngine;
using System.Collections;

public class PlayerNonPhysicsBehaviour : MonoBehaviour {

	public float speed = 25;
	private Vector3 movementDirection;
	
	void Start ()
	{
		
	}
	

	void FixedUpdate ()
	{

		
		movementDirection = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
		
		if (movementDirection.x != 0 && movementDirection.z != 0)
		{
			movementDirection /= Mathf.Sqrt(2);
		}
		
		this.rigidbody.MovePosition(this.rigidbody.transform.position + (movementDirection * speed * Time.deltaTime));
	}
}